<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
    <style>
        img{
            width: 100%;
        }
        .new-carousel{
            overflow: hidden;
        }
        .new-carousel .item{
            height: 500px;
            overflow: hidden;
        }
        .carousel-caption{
            bottom: 5%;
        }
        @media only screen and (max-width: 768px){
            .carousel-caption{
                bottom: 5%;
            }
            .new-carousel .item{
                height: 200px!important;
            }
        }
    </style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">现代浏览器博物馆</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">综述 <span class="sr-only">(current)</span></a></li>
                <li><a href="#">简述</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">特点 <span class="caret"></span></a>
                    <ul class="dropdown-menu" id="nav-id">
                        <li><a href="#chorme">Chrome</a></li>
                        <li><a href="#firfox">Firefox</a></li>
                        <li><a href="#safari">Safari</a></li>
                        <li><a href="#opera">Opear</a></li>
                        <li><a href="#ie">ID</a></li>
                    </ul>
                </li>
                <li><a href="#" data-target="#myModal" data-toggle="modal">关于</a></li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<!--    轮播-->
<div id="carousel-example-generic" class="carousel new-carousel slide" data-ride="carousel" data-interval="1000">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
        <li data-target="#carousel-example-generic" data-slide-to="3"></li>
        <li data-target="#carousel-example-generic" data-slide-to="4"></li>
    </ol>
    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
        <div class="item active">
            <img src="images/chrome-big.jpg" alt="...">
            <div class="carousel-caption">
                 <h2>chrome</h2>
            </div>
        </div>
        <div class="item">
            <img src="images/firefox-big.jpg" alt="...">
            <div class="carousel-caption">
                <h2>firefox</h2>
            </div>
        </div>
        <div class="item">
            <img src="images/safari-big.jpg" alt="...">
            <div class="carousel-caption">
                <h2>safari</h2>
            </div>
        </div>
        <div class="item">
            <img src="images/opera-big.jpg" alt="...">
            <div class="carousel-caption">
                <h2>opera</h2>
            </div>
        </div>
        <div class="item">
            <img src="images/ie-big.jpg" alt="...">
            <div class="carousel-caption">
                <h2>ie</h2>
            </div>
        </div>
    </div>

    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>
<!--<a href="#" id="test1">test1</a>-->
<!--<a href="#" id="test2">test2</a>-->
<div class="container" style="margin-top: 20px">
    <div class="row">
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail new-thumbnail text-center">
                <img style="width: auto" src="images/chrome-logo-small.jpg" alt="...">
                <div class="caption">
                    <h3>Chorem</h3>
                    <p>.sddfsfdsfdsgdfgdfgfdgdgdrfgertgregre..</p>
                    <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail new-thumbnail text-center">
                <img style="width: auto;" src="images/firefox-logo-small.jpg" alt="...">
                <div class="caption">
                    <h3>firefox</h3>
                    <p>.sddfsfdsfdsgdfgdfgfdgdgdrfgertgregre..</p>
                    <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail new-thumbnail text-center">
                <img style="width: auto;" src="images/safari-logo-small.jpg" alt="...">
                <div class="caption">
                    <h3>safari</h3>
                    <p>.sddfsfdsfdsgdfgdfgfdgdgdrfgertgregre..</p>
                    <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="container">
    <hr>
</div>
<!--标签页-->
<div class="container" id="stab">
    <div>
        <!-- Nav tabs -->
        <ul class="nav nav-tabs" role="tablist" id="tablist">
            <li role="presentation" class="active">
                <a href="#chorme" aria-controls="chorme" role="tab" data-toggle="tab">chorme</a>
            </li>
            <li role="presentation"><a href="#firfox" aria-controls="firfox" role="tab" data-toggle="tab">firfox</a></li>
            <li role="presentation"><a href="#safari" aria-controls="safari" role="tab" data-toggle="tab">safari</a></li>
            <li role="presentation"><a href="#opera" aria-controls="opera" role="tab" data-toggle="tab">opera</a></li>
            <li role="presentation"><a href="#ie" aria-controls="ie" role="tab" data-toggle="tab">ie</a></li>
        </ul>

        <!-- Tab panes -->
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane active" id="chorme">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-md-7">
                            <h3>Chore</h3>
                            <h5>sdfdsufdhfhdfdsifsdfsduisdfdsifsdhiudfshisddfskidsfkj</h5>
                        </div>
                        <div class="col-md-5">
                            <img src="images/chrome-logo.jpg" alt="">
                        </div>
                    </div>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane " id="firfox">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-md-7">
                            <h3>firfox</h3>
                            <h5>sdfdsufdhfhdfdsifsdfsduisdfdsifsdhiudfshisddfskidsfkj</h5>
                        </div>
                        <div class="col-md-5">
                            <img src="images/firefox-logo.jpg" alt="">
                        </div>
                    </div>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane " id="safari">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-md-7">
                            <h3>safari</h3>
                            <h5>sdfdsufdhfhdfdsifsdfsduisdfdsifsdhiudfshisddfskidsfkj</h5>
                        </div>
                        <div class="col-md-5">
                            <img src="images/safari-logo.jpg" alt="">
                        </div>
                    </div>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane " id="opera">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-md-7">
                            <h3>opera</h3>
                            <h5>sdfdsufdhfhdfdsifsdfsduisdfdsifsdhiudfshisddfskidsfkj</h5>
                        </div>
                        <div class="col-md-5">
                            <img src="images/opera-logo.jpg" alt="">
                        </div>
                    </div>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane " id="ie">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-md-7">
                            <h3>ie</h3>
                            <h5>sdfdsufdhfhdfdsifsdfsduisdfdsifsdhiudfshisddfskidsfkj</h5>
                        </div>
                        <div class="col-md-5">
                            <img src="images/ie-logo.jpg" alt="">
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
<!--版权-->
<nav class="navbar navbar-default navbar-static-buttom">
    <div class="container text-center">
        sadads
    </div>
</nav>
<!--模态框-->
<div class="modal fade" tabindex="-1" role="dialog" id="myModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">舒洪凡 title</h4>
            </div>
            <div class="modal-body">
                <p>模态框&hellip;</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script>
    $('.carousel').carousel({
        interval: 2000,
        pause:null
    })
    $('#test1').click(function () {
        $('.carousel').carousel('cycle')
    })
    $('#test2').click(function () {
        $('.carousel').carousel('pause')
    })

    $('#nav-id li a').click(function (e) {
        var href=$(this).attr('href')
        console.log(href)
        $('#tablist li a[href="'+href+'"]').tab('show')
        $(document).scrollTop($('#stab').offset().top)
        e.preventDefault()
    })
</script>
</body>
</html>
